import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Admin
 * Date: 2022-11-09
 * Time: 19:45
 */
public class Demo1 {
    public static int jumpFloorII(int target) {
        return (int)Math.pow(2,target - 1);
    }
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int target = scan.nextInt();
        System.out.println(jumpFloorII(target));
    }
}
